package com.example.leetcode.math;

import com.example.leetcode.math.common.MathUtils;

class Solution326 {
    public boolean isPowerOfThree(int n) {
        return MathUtils.isPowerOfThree(n);
    }
}

public class leetcode326 {
    public static void main(String[] args) {
        Solution326 solution326 = new Solution326();
        System.out.println(solution326.isPowerOfThree(27));
        System.out.println(solution326.isPowerOfThree(0));
        System.out.println(solution326.isPowerOfThree(9));
        System.out.println(solution326.isPowerOfThree(45));
    }
}
